Builder

open class Builder(source)

Builder class for NotificationChannelCompat objects.

Constructors

Link copied to clipboard
constructor(@NonNull id: String, importance: Int)
Creates a notification channel builder.

Functions

Link copied to clipboard
Link copied to clipboard
Sets this channel as being conversation-centric.
Link copied to clipboard
Sets the user visible description of this channel.
Link copied to clipboard
Sets what group this channel belongs to.
Link copied to clipboard
Sets the level of interruption of this notification channel.
Link copied to clipboard
Sets the notification light color for notifications posted to this channel, if lights are enabled on this channel and the device supports that feature.
Link copied to clipboard
Sets whether notifications posted to this channel should display notification lights, on devices that support that feature.
Link copied to clipboard
Sets the user visible name of this channel.
Link copied to clipboard
Sets whether notifications posted to this channel can appear as application icon badges in a Launcher.
Link copied to clipboard
Sets the sound that should be played for notifications posted to this channel and its audio attributes.
Link copied to clipboard
Sets whether notification posted to this channel should vibrate.
Link copied to clipboard
Sets the vibration pattern for notifications posted to this channel.